package com.swak.corpwx;

import java.util.concurrent.CompletableFuture;

import com.swak.corpwx.user.CpUser;
import com.swak.corpwx.user.CpUserAddResp;
import com.swak.corpwx.user.CpUserGetIdResp;
import com.swak.corpwx.user.CpUserUpdateResp;
import com.swak.wechat.WechatConfig;

/**
 * 用戶管理
 * 
 * @author 618lf
 */
public interface CpUserService {

	/**
	 * 设置用戶
	 * 
	 * @param add
	 * @return
	 */
	CompletableFuture<CpUserAddResp> addUser(WechatConfig app, CpUser add);

	/**
	 * 修改用戶
	 * 
	 * @param add
	 * @return
	 */
	CompletableFuture<CpUserUpdateResp> updateUser(WechatConfig app, CpUser update);

	/**
	 * 获取用戶
	 * 
	 * @param add
	 * @return
	 */
	CompletableFuture<CpUserGetIdResp> getUserId(WechatConfig app, CpUser mobile);
}
